<template>
  <div>
    <Card :bordered="false" dis-hover class="ivu-mt">
      <product />
    </Card>
  </div>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
import product from './component/productList.vue'; // 商品列表
import { getBtnsId } from '@/libs/btnsPermission';

export default {
  components: {
    product
  },
  data () {
    return {
      dynamicData: {},
      pagePath: '' // 当前路由
    };
  },
  computed: {
    ...mapState('admin/baseList', [
      'listData',
      'formItemData',
      'formItemDataRules'
    ])
  },
  created () {
    this.getConfigData();
  },
  mounted () {
    this.getData();
  },
  methods: {
    ...mapMutations('admin/baseList', [
      'setListData',
      'setFormItemData',
      'setFormItemDataRules'
    ]),
    // 获取表格数据
    getData (formData) {
      let curBtnId = getBtnsId('查询');
      sessionStorage.setItem('buttonId', curBtnId);
      // this.$refs.table.getData(formData);
    },
    // 获取初始配置信息
    getConfigData () {
      this.pagePath = this.$route.path;
    }
  }
};
</script>
